package com.gitee.zhanyao.common.service.generator.id.strategy;

import com.gitee.zhanyao.common.service.generator.id.IdGenerator;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.UUID;

/**
 * 36 位 UUID 生成策略
 */
@Service
public class UUID36Strategy implements IdGenerator<String> {

    @Override
    public String generateId() {
        return UUID.randomUUID().toString();
    }

}
